package per.turtle.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import per.turtle.common.core.web.entity.Query;

import java.time.LocalDateTime;

/**
 * @author turtle
 */
@ApiModel(value = "SysLoginInfo", description = "系统访问记录")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_login_info")
public class SysLoginInfo extends Query {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    @TableId(type = IdType.AUTO)
    private Long infoId;

    @ApiModelProperty("用户账号")
    private String userName;

    @ApiModelProperty("登录成功（0：否；1：是）")
    private Boolean isSuccess;

    @ApiModelProperty("地址")
    private String ipaddr;

    @ApiModelProperty("描述")
    private String msg;

    @ApiModelProperty("访问时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime accessTime;

}